package com.factory.absFactory;

import com.factory.absFactory.orderFactory.LDPizzaFactory;

import java.util.Calendar;

public class TestAbsFactory {
    public static void main(String[] args) {
        OrderPizza orderPizza = new OrderPizza();
        //如果想要订购北京风味的披萨
        //orderPizza.setAbsFactory(new BJPizzaFactory());
        //如果想要订购伦敦风味的披萨
        orderPizza.setAbsFactory(new LDPizzaFactory());
    }
}
